import ajax from '@/utils/ajax'

export async function getInfo() {
    return ajax.get('/user/getInfo');
}

export async function pageUser(params: any) {
    return ajax.post('/user/page', params);
}

export async function resetPassword(params: any) {
    return ajax({
        url: '/user/resetPassword',
        method: 'POST',
        data: params
    });
}

export async function setUserInfo(params: any) {
    return ajax({
        url: '/user/setRole',
        method: 'POST',
        data: params
    });
}
